package com.test10_接口应用;

import org.junit.Test;

/**
 * 提供有一个获取类名称的接口
 */
interface IClassName {
    public String getClassName();
}

class Company implements IClassName {
    @Override
    public String getClassName() {
        return "Class Company";
    }
}

public class YootkDemo_01 {

    @Test
    public void test1() {
        IClassName className = new Company();
        System.out.println(className.getClassName());
    }
}
